package com.yf.cn.mapper;

import com.yf.cn.entity.TestGoodsSales;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
* @author yangfeng
* @description 针对表【test_goods_sales(商品销量表)】的数据库操作Mapper
* @createDate 2023-12-11 14:44:01
* @Entity com.yf.cn.entity.TestGoodsSales
*/
public interface TestGoodsSalesMapper extends BaseMapper<TestGoodsSales> {
    /**
     * 根据商品id查询商品
     * @param: [java.lang.String]
     * @date: 2023/12/11 16:14
     * @return: com.yf.cn.entity.TestGoodsSales
     * @author: yangfeng
     **/
    TestGoodsSales getByGoodsId(@Param("goodsId")String goodsId);
    /**
     * 更新销量
     * @param: [com.yf.cn.entity.TestGoodsSales]
     * @date: 2023/12/11 15:40
     * @return: int       
     * @author: yangfeng
     **/
    int updateCount(@Param("t")TestGoodsSales t);

}




